<?php
/**
 * Created by IntelliJ IDEA.
 * User: HXL
 * Date: 2018/7/2
 * Time: 14:06
 */
namespace app\order\validate;

use think\Validate;
class Pros extends Validate{

    protected $rule=array(
        'pro_name'=>'require|unique:programs'
    );
    protected $message=array(
        'pro_name.require'=>'方案名必须',
        'pro_name.unique'=>'方案已存在'
    );
}